<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                >
    
    <f:view contentType="text/html">
        
        <h:panelGrid width="100%" columns="2">
            <p:pieChart value="#{qualityReport.qualityReportList}" 
                        var="qtChart" categoryField="#{qtChart.reworkCause}"  
                        dataField="#{qtChart.reworkCount}" 
                        width="" height="" 
                        />

            <p:dataTable var="qualityDT5" 
                     value="#{qualityReport.qualityReportList}"
                     id="qualityTB5" 
                     
                     rows="5"
                     >

                <p:column headerText="Rework Cause">
                <h:outputText value="#{qualityDT5.reworkCause}" style="font-size: 20px"/>
            </p:column>
            
                <p:column headerText="No. of Reworks">
                <h:outputText value="#{qualityDT5.reworkCount}" style="font-size: 20px"/>
            </p:column>
        </p:dataTable>
        
    </h:panelGrid>
        
        
        
        
        <!--            <p:dataTable var="qualityDT4" 
                                 value="qualityReport.qualityReportList}"
                                 id="qualityTB4" 
                                 paginator="true"
                                 paginatorPosition="bottom"
                                 rows="4"
                                 >
        
                        <p:column >
                            <h:outputText value="qualityDT4.reworkCause}" style="font-size: 20px"/>
                        </p:column>
        
                        <p:column >
                            <h:outputText value="qualityDT4.reworkCount}" style="font-size: 20px"/>
                        </p:column>
                    </p:dataTable>-->


    </f:view>
</ui:composition>